<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Logout extends CI_Controller {
	public function index()
	{
		$this->load->library('session');
		$this->load->helper(array('url'));
		//$this->session->unset_userdata('logged_in');
		$this->session->sess_destroy();
		redirect('login');
	}
}